/*
 * @Author: wangjing 1173862626@qq.com
 * @Date: 2025-05-26 10:36:58
 * @LastEditors: wangjing 1173862626@qq.com
 * @LastEditTime:2025-05-26 10:36:58
 * @FilePath: \neilao-mobile\src\router\patrol.ts
 * @Description: 巡查工单、养护工单、小修工单
 */
export const patrol = [
  {
    name: 'patrol',
    path: '/patrol',
    redirect: '/',
    title: '巡查工单',
    children: [
      {
        name: 'patrolDetail',
        path: 'detail',
        title: '巡查工单上报点位详情',
        component: () => import('../views/patrolWorkOrder/detail.vue'),
      },
      {
        name: 'patrolWorkDetail',
        path: 'workDetail',
        title: '巡查工单详情',
        component: () => import('../views/patrolWorkOrder/workDetail.vue'),
      },
      {
        name: 'patrolCompleted',
        path: 'completed',
        title: '巡查工单办结',
        component: () => import('../views/patrolWorkOrder/completedForm.vue'),
      },
      {
        name: 'patrolProblem',
        path: 'problem',
        title: '巡查工单问题上报',
        component: () => import('../views/patrolWorkOrder/problemForm.vue'),
      }
    ]
  },
  {
    name: 'maintain',
    path: '/maintain',
    redirect: '/',
    title: '养护工单',
    children: [
      {
        name: 'maintainDetail',
        path: 'detail',
        title: '养护工单上报点位详情',
        component: () => import('../views/maintainWorkOrder/detail.vue'),
      },
      {
        name: 'maintainWorkDetail',
        path: 'workDetail',
        title: '养护工单详情',
        component: () => import('../views/maintainWorkOrder/workDetail.vue'),
      },
      {
        name: 'maintainCompleted',
        path: 'completed',
        title: '养护工单办结',
        component: () => import('../views/maintainWorkOrder/completedForm.vue'),
      }
    ]
  },
  {
    name: 'repair',
    path: '/repair',
    redirect: '/',
    title: '维修工单',
    children: [
      {
        name: 'repairDetail',
        path: 'detail',
        title: '维修工单上报点位详情',
        component: () => import('../views/repairWorkOrder/detail.vue'),
      },
      {
        name: 'repairCompleted',
        path: 'completed',
        title: '维修工单办结',
        component: () => import('../views/repairWorkOrder/completedForm.vue'),
      }
    ]
  }
]